<template>
    <div style="padding: 15px;">
        <div style="display: flex; justify-content: space-between; margin-bottom: 15px;">
            <el-form :inline="true" :model="formInline" class="demo-form-inline">
                <!-- 下拉框 -->
                <el-select v-model="formInline.option" placeholder="请选择">
                    <el-option
                        v-for="item in options"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value">
                    </el-option>
                </el-select>
                <!-- 时间框 -->
                <el-date-picker
                    v-model="formInline.time"
                    type="daterange"
                    range-separator="至"
                    start-placeholder="开始日期"
                    end-placeholder="结束日期">
                </el-date-picker>
            </el-form>

            <!-- 按钮 -->
            <el-button type="primary">导出</el-button>
        </div>

        <!--列表-->
        <el-table size="small" :data="listData" highlight-current-row v-loading="loading" border element-loading-text="拼命加载中" style="width: 100%;">
            <el-table-column prop="groupName" label="员工" width="200">
            </el-table-column>
            <el-table-column sortable prop="lordName" label="分享次数" width="200">
            </el-table-column>
            <el-table-column sortable prop="groupTag" label="企微群发统计（次数）" width="250">
            </el-table-column>
            <el-table-column sortable prop="PeopleNum" label="PV" width="200">
            </el-table-column>
            <el-table-column sortable prop="join" label="UV" width="200">
            </el-table-column>
            <el-table-column sortable prop="quit" label="新增访客" width="200">
            </el-table-column>
            <el-table-column sortable prop="createTime" label="新增客户" width="200">
            </el-table-column>
        </el-table>
    </div>
</template>

<script>
export default {
    data() {
        return {
            // 下拉选项
            options: [
                {
                    value: '1',
                    label: '销售部'
                }, {
                    value: '2',
                    label: '技术部'
                }, {
                    value: '3',
                    label: '教研部'
                }
            ],
            // 搜索表单
            formInline: {
                option: '',
                time: ''
            },
            // 列表数据
            listData: [],
            // 是否加载
            loading: '',
        }
    },
    name: "empRank",
}
</script>

<style scoped>

</style>
